home *** CD-ROM | disk | FTP | other *** search
- VERSION 4.00
- Begin VB.Form Form1
- Caption = "WHOIS"
- ClientHeight = 6030
- ClientLeft = 1095
- ClientTop = 1515
- ClientWidth = 6720
- Height = 6435
- Left = 1035
- LinkTopic = "Form1"
- ScaleHeight = 6030
- ScaleWidth = 6720
- Top = 1170
- Width = 6840
- Begin VB.CommandButton Command2
- Caption = "Cancel"
- Height = 495
- Left = 2280
- TabIndex = 3
- Top = 5280
- Width = 1455
- End
- Begin VB.CommandButton Command1
- Caption = "Query"
- Height = 495
- Left = 480
- TabIndex = 2
- Top = 5280
- Width = 1455
- End
- Begin VB.TextBox Text2
- Height = 3855
- Left = 240
- Locked = -1 'True
- MultiLine = -1 'True
- ScrollBars = 3 'Both
- TabIndex = 1
- Top = 960
- Width = 6135
- End
- Begin VB.TextBox Text1
- Height = 375
- Left = 1200
- TabIndex = 0
- Top = 240
- Width = 5175
- End
- Begin GethostLibCtl.GetAdrs GetAdrs1
- Left = 5520
- Top = 5400
- _Version = 262144
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- End
- Begin WhoisLibCtl.Whois Whois1
- Left = 4800
- Top = 5400
- _Version = 262144
- _ExtentX = 847
- _ExtentY = 847
- _StockProps = 0
- End
- Begin VB.Label Label1
- Caption = "Query Information"
- Height = 375
- Left = 240
- TabIndex = 4
- Top = 240
- Width = 855
- End
- Attribute VB_Name = "Form1"
- Attribute VB_Creatable = False
- Attribute VB_Exposed = False
- Const CANCEL_REQUEST = 2
- Const REQUEST_INFORMATION = 1
- Private Sub Command1_Click()
- GetAdrs1.HostName = "WHOIS.INTERNIC.NET"
- End Sub
- Private Sub Command2_Click()
- Whois1.Action = CANCEL_REQUEST
- End Sub
- Private Sub Form_Load()
- MsgBox "Whois : " + Whois1.Version + " / GetAdrs : " + GetAdrs1.Version
- Text1.Text = "MABRY.COM"
- End Sub
- Private Sub GetAdrs1_EndGetHostAddress(ByVal IPAddress As String, ByVal ErrorNumber As Integer)
- 'The operation can be executed with events...
- Whois1.HostAddress = IPAddress
- Whois1.WhoisRequest = Text1.Text
- Whois1.Action = REQUEST_INFORMATION
- 'Or the operation can be made in a sequential manner
- ' MsgBox Whois1.GetWhoisInformation(IPAddress, Text1.Text)
- End Sub
- Private Sub Whois1_EndGetWhoisInformation(ByVal WhoisInformation As String, ByVal ErrorNumber As Integer)
- Text2.Text = WhoisInformation + Chr(13) + Chr(10) + "Error : " + Str(ErrorNumber)
- End Sub
-